home *** CD-ROM | disk | FTP | other *** search
/ Dragon Blade - Wrath of Fire (USA) (Press Kit) / Dragon Blade - Wrath of Fire (USA) (Press Kit).bin / pc / main.swf / scripts / frame_87 / DoAction.as
Encoding:
Text File  |  2007-01-01  |  2.9 KB  |  69 lines

  1. function brandEnabler(loaderName)
  2. {
  3.    navPress_mc.buttons_mc[loaderName].hitVal = 1;
  4.    navPress_mc.buttons_mc[loaderName].hit_mc.enabled = false;
  5.    navPress_mc.buttons_mc[prevName].hit_mc.enabled = true;
  6.    navPress_mc.buttons_mc[prevName].hit_mc.colorTo(0,0.3,"easeOutSine");
  7.    navPress_mc.buttons_mc[prevName].name_txt.colorTo(16770048,0.3,"easeOutSine");
  8.    navPress_mc.buttons_mc[prevName].arrow_txt.colorTo(16777215,0.3,"easeOutSine");
  9.    navPress_mc.buttons_mc[prevName].loadBar_mc.tween("_width",0,0.3,"easeInSine");
  10.    prevName = loaderName;
  11. }
  12. stop();
  13. nodeCount_var = 1;
  14. headingSub_txt.text = "CLICK TO DOWNLOAD";
  15. imageCharSub_mc.alphaTo(0,0.3,"easeInQuad",0.6);
  16. imageCharSub_mc.colorTo(16777215,0.3,"easeInQuad",0.4);
  17. imageCharMain_mc.alphaTo(0,0.3,"easeInQuad",0.4);
  18. imageCharMain_mc.colorTo(16777215,0.3,"easeInQuad",0.2);
  19. imageLogoMain_mc.alphaTo(0,0.3,"easeInQuad",0.2);
  20. imageLogoMain_mc.colorTo(16777215,0.3,"easeInQuad");
  21. var Bspacing = 1;
  22. b = 0;
  23. while(b < imageTotal)
  24. {
  25.    imageTotal = content_xml.firstChild.childNodes[1].childNodes.length;
  26.    btnFile = content_xml.firstChild.childNodes[1].childNodes[b].attributes.ref;
  27.    btnRoll = content_xml.firstChild.childNodes[1].childNodes[b].firstChild.nodeValue;
  28.    btnName = content_xml.firstChild.childNodes[1].childNodes[b].attributes.title;
  29.    if(b == 0)
  30.    {
  31.       var butName = "button" + b + "_mc";
  32.       navPress_mc.buttons_mc.attachMovie("buttonP",butName,b);
  33.       navPress_mc.buttons_mc[butName]._alpha = 0;
  34.       navPress_mc.buttons_mc[butName].alphaTo(100,0.3,"easeOutSine");
  35.       navPress_mc.buttons_mc[butName].name_txt.html = true;
  36.       navPress_mc.buttons_mc[butName].name_txt.autoSize = "left";
  37.       navPress_mc.buttons_mc[butName].name_txt.wordWrap = true;
  38.       navPress_mc.buttons_mc[butName].name_txt.htmlText = btnName;
  39.       navPress_mc.buttons_mc[butName].HRLink = btnRoll;
  40.       navPress_mc.buttons_mc[butName].PLink = btnFile;
  41.       navPress_mc.buttons_mc[butName].PNum = b;
  42.    }
  43.    else
  44.    {
  45.       var butName = "button" + b + "_mc";
  46.       navPress_mc.buttons_mc.attachMovie("buttonP",butName,b);
  47.       navPress_mc.buttons_mc[butName]._alpha = 0;
  48.       navPress_mc.buttons_mc[butName].alphaTo(100,0.3,"easeOutSine");
  49.       var buttonsHeight = Math.round(navPress_mc.buttons_mc._height);
  50.       var y = Bspacing;
  51.       navPress_mc.buttons_mc[butName].name_txt.autoSize = "left";
  52.       navPress_mc.buttons_mc[butName].name_txt.wordWrap = true;
  53.       navPress_mc.buttons_mc[butName].name_txt.html = true;
  54.       navPress_mc.buttons_mc[butName].name_txt.htmlText = btnName;
  55.       navPress_mc.buttons_mc[butName]._y = y + buttonsHeight;
  56.       navPress_mc.buttons_mc[butName].HRLink = btnRoll;
  57.       navPress_mc.buttons_mc[butName].PLink = btnFile;
  58.       navPress_mc.buttons_mc[butName].PNum = b;
  59.    }
  60.    if(b == imageTotal - 1)
  61.    {
  62.       if(navPress_mc.buttons_mc._height > 300)
  63.       {
  64.          navPress_mc.gotoAndStop(2);
  65.       }
  66.    }
  67.    b++;
  68. }
  69.